<?php

	spl_autoload_register(function ($className) {

		$className = str_replace("\\", "/", $className) . ".php";
		if (is_file($className)) {
			require $className;
			
		} else {
			$classNameArr = explode("/", $className);
			$className = $classNameArr[count($classNameArr)-1] ?? "";
			var_dump("自动加载{$className}失败！");
		}

	});

?>